/**
* @file WatchdogServerAgent.h
* @brief
* 之前考虑到watchdog之间需要通信，故写此类，后因为不需要状态同步，故此类目前没有用
* 
* @author Wang haoyu
* @email 136046355@qq.com
*/
#ifndef __WATCHDOGSERVERAGENT_H__
#define __WATCHDOGSERVERAGENT_H__

#include "common/comm/TCPAgent.h"

class WatchdogServerAgent : public TCPAgent{
  private:
    /* data */
  public:
    WatchdogServerAgent();
    WatchdogServerAgent(const SocketAddress &);
    WatchdogServerAgent(const TCPSocket &, const SocketAddress &);
    ~WatchdogServerAgent();

    int init();
    int connectAfter( bool );
    void readBack( InReq & );
    void writeBack( bool );
    int sendPackage( MsgHeader &, const char * );
    void recycler( void );

};

#endif // __WATCHDOGSERVERAGENT_H__